<template>
  <section class="nameCardWrap" :class="{'bgColor': bgColor == 1}">
    <div class="nameCard" :class="{'borderB':borderB}">
      <div class="face" :style="{background:'url('+ faceUrl + ') no-repeat center center', backgroundSize:'cover'}"></div>
      <div class="personInfo">
        <p class="identity"><span><slot name="name">行家姓名</slot></span><slot name="info">行家的自我领域介绍</slot></p>
        <p class="intro">行家介绍：<slot name="area">填写擅长的领域</slot></p>
      </div>
      <div v-if="bool" class="moreIcon"></div>
    </div>
  </section>
</template>
<script>
export default {
  props: {
    bgColor: {
       default: 0
    },
    borderB: {
      default: false
    },
    bool: {
      default: false,
    },
    faceUrl: {
      default: ''
    }
  },
  data () {
    return {
      
    }
  }
}
</script>
<style lang="less" scoped>
.bgColor {
  background: #FAFAFA!important;
}
.nameCardWrap {
  width: 100%;
  height: .82rem;
  padding: .16rem .15rem 0;
  box-sizing: border-box;
  background: white;
  .borderB {
      border-bottom: .01rem solid #E5E5E5;
    }
  .nameCard {
    width: 3.45rem;
    display: flex;
    height: .65rem;
    align-items: center;
    
    .face {
      width: .42rem;
      height: .42rem;
      border-radius: 50%;
      background-size: cover !important;
    }
    .moreIcon {
      width: .2rem;
      height: .2rem;
      background: url('../../assets/img/icon_shape@3x.png') center center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .personInfo {
      width: 2.6rem;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-left: .15rem;
      .identity {
        width: 2.6rem;
        height: .17rem;
        line-height: .17rem;
        font-size: .12rem;
        font-weight: 500;
        color: #828282;
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
        span {
          font-size: .14rem;
          color: #39393D;
          padding-right: .04rem;
        }
      }
      .intro {
        width: 2.6rem;
        padding-top: .08rem;
        font-size: .16rem;
        color: #555555;
        font-weight: 600;
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
      }
    }
  }
} 

</style>
